@import './common.less';


html,body,#app,.common,.dialogue{
    height: 100%;
    background-color:rgb(230, 230, 230);
}
// 主页的
.common{
    display: flex;
    flex-direction: column;
    .white{
        background-color: #fff;
    }
    .header{
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-shrink: 0;
        height: 40/@rem;
        line-height: 40/@rem;
        &-title{
            // text-align: center;
            font-size: 16/@rem;
        }
        &-icon{
            position: absolute;
            top: 0;
            right: 5/@rem;
            img{
                width: 18/@rem;
            }
        }
    }
    .content{
        // 隐藏滚动条
        &::-webkit-scrollbar{
            display: none;
        }
        // background-color: #fff;
        flex-grow: 1;
        overflow: auto;
        // p{
        //     margin: 20/@rem;
        // }
    }
    .footer{
        display: flex;
        flex-direction: row;
        flex-shrink: 0;
        justify-content: space-around;
        margin: 5/@rem;
        font-size: 14/@rem;
        div{
            text-align: center;
            .active{
                color:rgb(7,192,96)
            }
            img{
                width: 20/@rem;
            }
        }
    }
}

// chats界面样式

.chats{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    font-size: 12/@rem;
    // margin-bottom: 5/@rem;
    padding: 10/@rem 0 10/@rem 10/@rem;
    background-color: #fff;
    &-left{
        width: 20%;
        img{
            width: 45/@rem;
        }
    }
    &-right{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 80%;
        border-bottom: 1px solid rgb(237, 237, 237);
        padding-bottom: 15/@rem;
        vertical-align: middle;
        &-msg{
            p:first-child{
                margin: 10/@rem 0;
            }
        }
        &-time{
            align-items: right; 
            padding-top: 10/@rem;
            padding-right: 10/@rem;   
        }
    }
}
// 对话样式
.dialogue{
    display: flex;
    flex-direction: column;
    img{
        width: 20/@rem;
    }
    .header{
        // position: fixed;
        // top: 0;
        // left: 0;
        // right: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-shrink: 0;
        height: 40/@rem;
        line-height: 40/@rem;
        padding: 0 5/@rem;
        // background-color: rgb(237, 237, 237);
        // z-index: 9;
    }
    .content{
        // height: 100%;
        overflow: auto;
        flex-grow: 1;
        background-color: rgb(237, 237, 237);
        font-size: 14 / @rem;
        img{
            display: inline-block;
            width: 30/@rem;
            height: 30/@rem;
            
        }
        .left{
            display: flex;
            flex-direction: row;

            margin: 10/@rem;
                
            span{
                position: relative;
                margin-left: 15/@rem;
                padding: 5/@rem;
                vertical-align: middle;
                background-color: #fff;
                border-radius: 5/@rem;
                // width: 80%;

                &::before{
                    content: "";
                    position: absolute;
                    top: 5/@rem;
                    left: -10/@rem;
                    display: inline-block;
                    width: 0;
                    height: 0;
                    border-top: 10/@rem solid rgba(0,0,0,0);
                    border-right: 10/@rem solid #fff;
                    border-bottom:10/@rem solid rgba(0,0,0,0);
                    // border-left:5/@rem solid plum;
                }
            }
        }
        .right{
            display: flex;
            flex-direction: row-reverse;
            justify-content: right; 
            margin: 10/@rem;
            padding-right: 10/@rem;
            span{
                position: relative;
                display: inline-block;
                margin-right: 15/@rem;
                padding: 5/@rem;
                vertical-align: middle;
                background-color: rgb(7,192,96);
                border-radius: 5/@rem;
                &::after{
                    content: "";
                    position: absolute;
                    top: 5/@rem;
                    right:-20/@rem;
                    display: inline-block;
                    width: 0;
                    height: 0;
                    border-top: 10/@rem solid rgba(0,0,0,0);
                    border-right: 10/@rem solid rgba(0,0,0,0);
                    border-bottom:10/@rem solid rgba(0,0,0,0);
                    border-left:10/@rem solid rgb(7,192,96);
            }

        }
        }
    }
    .footer{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        flex-shrink: 0;
        height: 40/@rem;
        line-height: 40/@rem;
        input{
            height: 25/@rem;
            outline: none;
            border: none;
            border-radius: 5/@rem;
        }
    }
}

// 通讯录样式
.contacts{
    display: flex;
    flex-direction: row;
    img{
        width: 45/@rem;
        margin: 10/@rem;
    }
    &-left{
        flex-shrink: 0;
    }
    &-right{
        flex-grow: 1;
        margin: auto 0;
        margin-left: 10/@rem;
        padding: 20/@rem 0;
        border-bottom: 1px solid rgb(237, 237, 237);
    }
}
.p{
    padding: 3/@rem;
    background-color: rgb(237, 237, 237);
    font-size: 12/@rem;
}
.contacts-company{
    display: flex;
    flex-direction: row;

    img{
        width: 45px;
        margin: 10/@rem;
    }
    
}
// 朋友详情页样式
.friends{
    height: 100%;
    background-color: #fff;
    img{
        width: 25/@rem;
    }
    .header{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 10/@rem;
    }

    .content{
        display: flex;
        flex-direction: row;
        align-items: center;
        padding-bottom: 10/@rem;
        border-bottom: 1px solid rgb(230,230,230);
        &-left{
            img{
                display: inline-block;
                width:50/@rem;
                margin: 10/@rem;
            }
        }
        &-right{
            font-size: 14/@rem;
            nick{
                padding: 4/@rem;
            }
        }
    }

    .info{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 10/@rem 10/@rem 10/@rem 0/@rem;
        margin-left: 10/@rem;
        border-bottom: 1px solid rgb(230, 230, 230);
    }
    .more{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 5/@rem;
        border-top:10/@rem solid rgb(230, 230, 230);
        border-bottom:10/@rem solid rgb(230, 230, 230);
    }
    .tel{
        text-align: center;
        padding: 5/@rem;
        border-bottom: 1px solid rgb(230,230,230);
    }


}

.bb{
    border-bottom: 10/@rem solid rgb(230, 230, 230);
}
.bl{
    border-bottom: 1/@rem solid rgb(230, 230, 230);
}
.discover{
        img{
            width: 24/@rem;
        }
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        background-color: #fff;
        padding: 8/@rem;
    }

// Me的界面样式
.me{
    .btb{
        border-bottom: 8/@rem solid rgb(230, 230, 230);
        border-top: 8/@rem solid rgb(230, 230, 230);

    }
    background-color: #fff;
    font-size: 14/@rem;
    img{
        width: 24/@rem;
    }
    .self{
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 10/@rem;
        padding-top: 5/@rem ;
        padding-bottom: 25/@rem ;
        // border-bottom: 5/@rem solid rgb(230, 230, 230);
        .left{
  
            img{
                width: 60/@rem;
                margin: 10/@rem;
            }
        }
        .right{
            flex-grow:1;
            .detail{
                display: flex;
                flex-direction: row;
                justify-content:space-between;
                padding-right: 4/@rem;
                margin: 3/@rem;
            }
            .status{
                width: 60/@rem;
                padding: 3/@rem;
                text-align: center;
                border: 1/@rem solid rgb(1, 1, 1);
                border-radius: 15/@rem;
            }
        }
    }
    &-content{
        display: flex;
        flex-direction: row;
        padding: 15/@rem 0 5/@rem 5/@rem;
        align-self:end;
        .left{
            flex-shrink: 0;
            img{
                display: inline-block;
               
            }
        }
        .right{
            padding-left: 15/@rem;
            flex-grow: 1;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            padding-bottom: 10/@rem;
            img{
                display: inline-block;
                padding-right: 8/@rem;
            }
        }
        
    }
}
// 空间样式
.moments{
    //  &::-webkit-scrollbar{
    //         display: none;
    //     }
    img{
        width: 24/@rem;
    }
    overflow: auto;
    height: 100%;
    background-color: #fff;
    position: relative;
    .header{
        width: 100%;
        position: fixed;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 5/@rem;
        z-index:99;
    //   background-color: #fff;
    }
    .intro{

        .bg{
            width: 100%;
            height: 200/@rem;
        }
        .fp{
            position: absolute;
            right: 10/@rem;
            top: 160/@rem;
            // z-index: 9;
            width: 60/@rem;
        }
    }

    .show{
       
        display: flex;
        flex-direction: row;
        width: 100%;
        margin-top: 25/@rem;
        background-color: #fff;
        border-bottom: 1px solid rgb(230, 230, 230);
        .left{
            margin-left: 10/@rem;
            img{
                width: 40 / @rem;
            }
        }
        .right{
            width: 100%;
            margin-left: 10/@rem;
            .pic{
                margin-top: 15/@rem;
                margin-bottom: 15/@rem;
                img{
                    width: 150/@rem;
                    height: 150/@rem;
                }
            }
            .bot{
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                padding-right: 5/@rem;
                padding-bottom: 8/@rem;
            }
        }

    }
}

// 个人详情页样式
.profile{
    width: 100%;
    img{
        width: 24/@rem;
    }
    .header{
        position: relative;
        height: 40/@rem;
        line-height: 40/@rem;
        .back{
            position: absolute;
        }
        &-title{
            text-align: center;
        }
    }
    &-content{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        background-color: #fff;
        padding:0 5/@rem;
        .left{
            padding: 10/@rem 0; 
        }
        .right{
            padding: 10/@rem 0; 
        }

    }
}
